#include"Thread.hpp"

void Print(int num)
{
    while(num--)
    {
        cout<<"new thread正在执行Print函数，剩余调用次数"<<num<<endl;
        sleep(2);
    }
}
int main()
{
    zhong::Thread<int> t(zhong::GetThreadName(), Print, 5);
    t.Start();
    // t.Join();
    while(1)
    {
        cout<<"main thread"<<endl;
        sleep(2);
    }
    return 0;
}